package com.yao.club.entity.dto;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "information_type")
public class InformationType {
    @Id
    @Column(name = "information_type_id", nullable = false, length = 64)
    private String informationTypeId;

    @Column(name = "name", nullable = false, length = 100)
    private String name;

    @Column(name = "sort")
    private Integer sort;

    @Column(name = "del_flag")
    private Boolean delFlag;

    @Column(name = "create_time")
    private Instant createTime;

    @Column(name = "create_by", length = 64)
    private String createBy;

    @Column(name = "update_time")
    private Instant updateTime;

    @Column(name = "update_by", length = 64)
    private String updateBy;

    @Lob
    @Column(name = "params")
    private String params;

}